package com.clkj.xiuzheng.pojo.shangcheng;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @author yawang
 * @date Fri May 17 09:15:27 CST 2024
 */
@ApiModel( value ="t_xz_order" )
@Table( name ="t_xz_order" )
public class Order  implements Serializable {


	/**
	 * 商城   订单id
	 */
	@Id
   	@Column(name = "order_id" ,updatable = false)
	@ApiModelProperty( value="商城   订单id")
	private Integer orderId;

	/**
	 * 订单编号
	 */
   	@Column(name = "order_number" )
	@ApiModelProperty( value="订单编号")
	private String orderNumber;

	/**
	 * 收货人
	 */
   	@Column(name = "customer_name" )
	@ApiModelProperty( value="收货人")
	private String customerName;

	/**
	 * 收件人电话
	 */
   	@Column(name = "customer_tel" )
	@ApiModelProperty( value="收件人电话")
	private String customerTel;

	/**
	 * 收货地址
	 */
   	@Column(name = "customer_address" )
	@ApiModelProperty( value="收货地址")
	private String customerAddress;

	/**
	 * 总金额
	 */
   	@Column(name = "total_money" )
	@ApiModelProperty( value="总金额")
	private Double totalMoney;

	/**
	 * 总数量
	 */
   	@Column(name = "total_num" )
	@ApiModelProperty( value="总数量")
	private Integer totalNum;

	/**
	 * 实付金额
	 */
   	@Column(name = "real_money" )
	@ApiModelProperty( value="实付金额")
	private Double realMoney;

	/**
	 * 使用余额
	 */
   	@Column(name = "used_balance" )
	@ApiModelProperty( value="使用余额")
	private Double usedBalance;

	/**
	 * 扣除积分或钻石
	 */
   	@Column(name = "deduct_source" )
	@ApiModelProperty( value="扣除积分或钻石")
	private Integer deductSource;

	/**
	 * 用户id
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="用户id")
	private Integer userId;

	/**
	 * 公司id
	 */
   	@Column(name = "company_id" )
	@ApiModelProperty( value="公司id")
	private Integer companyId;

	/**
	 * 下单时间
	 */
   	@Column(name = "order_date" )
	@ApiModelProperty( value="下单时间")
	private String orderDate;

	/**
	 * 订单状态 0未支付 1已支付待发货 2已发货待收货 3已完成4已取消 5售后中
	 */
   	@Column(name = "order_status" )
	@ApiModelProperty( value="订单状态 0未支付 1已支付待发货 2已发货待收货 3已完成4已取消 5售后中")
	private Integer orderStatus;

	/**
	 * 支付时间
	 */
   	@Column(name = "pay_date" )
	@ApiModelProperty( value="支付时间")
	private String payDate;

	/**
	 * 发货时间
	 */
   	@Column(name = "send_date" )
	@ApiModelProperty( value="发货时间")
	private String sendDate;

	/**
	 * 物流公司编号
	 */
   	@Column(name = "send_company" )
	@ApiModelProperty( value="物流公司编号")
	private String sendCompany;

	/**
	 * 物流公司名称
	 */
	@Column(name = "send_comName" )
	@ApiModelProperty( value="物流公司名称")
	private String sendComName;

	/**
	 * 快递单号
	 */
   	@Column(name = "send_order" )
	@ApiModelProperty( value="快递单号")
	private String sendOrder;

	/**
	 * 收货时间
	 */
   	@Column(name = "take_date" )
	@ApiModelProperty( value="收货时间")
	private String takeDate;

	/**
	 * 订单备注
	 */
   	@Column(name = "order_note" )
	@ApiModelProperty( value="订单备注")
	private String orderNote;
	/**
	 * 发货操作人id
	 */
	@Column(name = "send_user_id" )
	@ApiModelProperty( value="发货操作人id")
	private Integer sendUserId;


	/**
	 * 0为正常订单，1为钻石兑换
	 */
	@Column(name = "order_flag" )
	@ApiModelProperty( value="0为正常订单，1为钻石兑换")
	private Integer orderFlag;

	/**
	 * 总订单号
	 */
	@Column(name = "number_flag" )
	@ApiModelProperty( value="总订单号")
	private String numberFlag;

	/**
	 * 总邮费
	 */
	@Column(name = "total_post" )
	@ApiModelProperty( value="总邮费")
	private Double totalPost;

	/**
	 * 商品实际金额
	 */
	@Column(name = "total_productMoney" )
	@ApiModelProperty( value="商品实际金额")
	private Double totalProductMoney;
	/**
	 * 总邮费
	 */
	@Column(name = "factory_id" )
	@ApiModelProperty( value="总邮费")
	private Integer factoryId;


   	@Transient
   	private List<OrderInfo> orderInfoList;
   	@Transient
	private String cartIds;
	   @Transient
	   private String sendUserName;


  public Integer getOrderId() {
    return orderId;
  }

  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }


  public String getOrderNumber() {
    return orderNumber;
  }

  public void setOrderNumber(String orderNumber) {
    this.orderNumber = orderNumber;
  }


  public String getCustomerName() {
    return customerName;
  }

  public void setCustomerName(String customerName) {
    this.customerName = customerName;
  }


  public String getCustomerTel() {
    return customerTel;
  }

  public void setCustomerTel(String customerTel) {
    this.customerTel = customerTel;
  }


  public String getCustomerAddress() {
    return customerAddress;
  }

  public void setCustomerAddress(String customerAddress) {
    this.customerAddress = customerAddress;
  }


  public Double getTotalMoney() {
    return totalMoney;
  }

  public void setTotalMoney(Double totalMoney) {
    this.totalMoney = totalMoney;
  }


  public Integer getTotalNum() {
    return totalNum;
  }

  public void setTotalNum(Integer totalNum) {
    this.totalNum = totalNum;
  }


  public Double getRealMoney() {
    return realMoney;
  }

  public void setRealMoney(Double realMoney) {
    this.realMoney = realMoney;
  }


  public Double getUsedBalance() {
    return usedBalance;
  }

  public void setUsedBalance(Double usedBalance) {
    this.usedBalance = usedBalance;
  }


  public Integer getDeductSource() {
    return deductSource;
  }

  public void setDeductSource(Integer deductSource) {
    this.deductSource = deductSource;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Integer companyId) {
    this.companyId = companyId;
  }


  public String getOrderDate() {
    return orderDate;
  }

  public void setOrderDate(String orderDate) {
    this.orderDate = orderDate;
  }


  public Integer getOrderStatus() {
    return orderStatus;
  }

  public void setOrderStatus(Integer orderStatus) {
    this.orderStatus = orderStatus;
  }


  public String getPayDate() {
    return payDate;
  }

  public void setPayDate(String payDate) {
    this.payDate = payDate;
  }


  public String getSendDate() {
    return sendDate;
  }

  public void setSendDate(String sendDate) {
    this.sendDate = sendDate;
  }


  public String getSendCompany() {
    return sendCompany;
  }

  public void setSendCompany(String sendCompany) {
    this.sendCompany = sendCompany;
  }


  public String getSendOrder() {
    return sendOrder;
  }

  public void setSendOrder(String sendOrder) {
    this.sendOrder = sendOrder;
  }


  public String getTakeDate() {
    return takeDate;
  }

  public void setTakeDate(String takeDate) {
    this.takeDate = takeDate;
  }


  public String getOrderNote() {
    return orderNote;
  }

  public void setOrderNote(String orderNote) {
    this.orderNote = orderNote;
  }


	public List<OrderInfo> getOrderInfoList() {
		return orderInfoList;
	}

	public void setOrderInfoList(List<OrderInfo> orderInfoList) {
		this.orderInfoList = orderInfoList;
	}

	public String getCartIds() {
		return cartIds;
	}

	public void setCartIds(String cartIds) {
		this.cartIds = cartIds;
	}

	public Integer getSendUserId() {
		return sendUserId;
	}

	public void setSendUserId(Integer sendUserId) {
		this.sendUserId = sendUserId;
	}

	public Integer getOrderFlag() {
		return orderFlag;
	}

	public void setOrderFlag(Integer orderFlag) {
		this.orderFlag = orderFlag;
	}

	public String getSendComName() {
		return sendComName;
	}

	public void setSendComName(String sendComName) {
		this.sendComName = sendComName;
	}

	public String getSendUserName() {
		return sendUserName;
	}

	public void setSendUserName(String sendUserName) {
		this.sendUserName = sendUserName;
	}

	public String getNumberFlag() {
		return numberFlag;
	}

	public void setNumberFlag(String numberFlag) {
		this.numberFlag = numberFlag;
	}

	public Double getTotalPost() {
		return totalPost;
	}

	public void setTotalPost(Double totalPost) {
		this.totalPost = totalPost;
	}

	public Double getTotalProductMoney() {
		return totalProductMoney;
	}

	public void setTotalProductMoney(Double totalProductMoney) {
		this.totalProductMoney = totalProductMoney;
	}

	public Integer getFactoryId() {
		return factoryId;
	}

	public void setFactoryId(Integer factoryId) {
		this.factoryId = factoryId;
	}
}
